package com.baizhi.controller;


import com.baizhi.entity.SpuInfo;
import com.baizhi.service.ISpuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * spu信息 前端控制器
 * </p>
 *
 * @author haiyu
 * @since 2021-09-17
 */
@RestController
@RequestMapping("/spuInfo")
public class SpuInfoController {



    @Autowired
    private ISpuInfoService sis;

    @GetMapping("/selectAll")
    public List<SpuInfo> selectAll(){
        List<SpuInfo> list = sis.list();

        return list;
    }
}

